package doudizhu;

/**
 * 扑克牌
 */
public class Card {
    /**
     * 点数
     */
    private String point;
    /**
     * 花色（黑桃、红心、梅花、方块，♠、♥、♣、♦）
     */
    private String type;
    /**
     * 点值
     */
    private int value;

    public Card(String point, String type, int value) {
        this.point = point;
        this.type = type;
        this.value = value;
    }

    public String getPoint() {
        return point;
    }

    public void setPoint(String point) {
        this.point = point;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return point + type + ' ';
    }
}
